package cn.leaf.uc.api.entity;

import cn.leaf.database.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
    * 租户表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@TableName(value = "t_tenant_user")
public class TenantUserEntity extends BaseEntity implements Serializable {
    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 删除标识
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_TENANT_ID = "tenant_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_INSERT_USER = "insert_user";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_AVATAR = "avatar";
}